<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float $vip1 购买金额
 * @property int $vip2_team 升级成 分公司, 推两会员
 * @property int $vip2 升级联创, 推20分公司
 * @property int $vip3 升级股东, 推20联创
 * @property int|null $vip3_team
 * @property int|null $vip4
 * @property int|null $vip4_team
 * @property int|null $vip5
 * @property int $vip5_team 平级
 * @property int $vip6 复购价
 * @property int $vip6_team
 * @property float|null $r1
 * @property float|null $r2
 * @property float|null $r3
 * @property float|null $r4
 * @property float|null $r5
 * @property float|null $r6
 * @property float|null $s
 * @property float|null $q2
 * @property float|null $q3
 * @property float|null $q4
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['vip1', 'r1', 'r2', 'r3', 'r4', 'r5', 'r6', 's', 'q2', 'q3', 'q4'], 'number'],
            [['vip2_team', 'vip2', 'vip3', 'vip3_team', 'vip4', 'vip4_team', 'vip5', 'vip5_team', 'vip6', 'vip6_team'], 'integer'],

            [['user'], 'safe']
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'vip1' => 'Vip 1',
            'vip2_team' => 'Vip 2 Team',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip3_team' => 'Vip 3 Team',
            'vip4' => 'Vip 4',
            'vip4_team' => 'Vip 4 Team',
            'vip5' => 'Vip 5',
            'vip5_team' => 'Vip 5 Team',
            'vip6' => 'Vip 6',
            'vip6_team' => 'Vip 6 Team',
            'r1' => 'R 1',
            'r2' => 'R 2',
            'r3' => 'R 3',
            'r4' => 'R 4',
            'r5' => 'R 5',
            'r6' => 'R 6',
            's' => 'S',
            'q2' => 'Q 2',
            'q3' => 'Q 3',
            'q4' => 'Q 4',
        ];
    }
}
